package com.wj.controller;

import com.wj.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.UUID;

@Controller
@RequestMapping("/consumer")
public class ConsumerController {

    @Autowired
    private HelloService helloService;


    @RequestMapping("/test")
    public String hello(){
        System.out.println(helloService.sayHello(UUID.randomUUID().toString()));
        return "test";
    }

    //http://localhost:8082/dubbo_consumer/consumer/test
}